package com.ysx.wemedia.feign;

import com.ysx.core.feign.CoreFeign;
import com.ysx.wemedia.pojo.WmNews;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.GetMapping;

import java.util.List;

@FeignClient(value ="toutiao-wemedia",path = "/wmNews",contextId = "wmNews")
public interface WeMediaNewsFeign extends CoreFeign<WmNews> {

    //TODO 待完成
    @GetMapping("/getList")
    List<WmNews> getNewsListByStatus(Integer status);
}
